import request from '../utils/request'

export function getPermissionById (code) {
  const formData = new FormData()
  formData.append('code', code)
  return request.post('/menu/getMenuListByCode', formData)
}

export function login (userid, password) {
  const formData = new FormData()
  formData.append('code', userid)
  formData.append('password', password)
  return request.post('/employee/login', formData)
}
